﻿@model AfrikDotnetWebSite.Models.LocalPasswordModel
@{
    ViewBag.Title = "Manage Account";
}

<div class="manage">
    <hgroup class="title">
        <h1>@ViewBag.Title.</h1>
    </hgroup>

    <p class="message-success">@ViewBag.StatusMessage</p>

    <p>You're logged in as <strong>@User.Identity.Name</strong>.</p>

    <div class="box cf">
        <div class="float-left">
            <div class="box">
                @if (ViewBag.HasLocalPassword)
                {
                    @Html.Partial("_ChangePasswordPartial")
                }
                else
                { 
                    @Html.Partial("_SetPasswordPartial")
                }
            </div>
            <div class="box">
                @Html.Action("UpdateProfile")
            </div>
        </div>
        <div class="float-right">
            <section class="box" id="externalLogins">
                @Html.Action("RemoveExternalLogins")
                <div class="box">
                    <h3>Add an external login</h3>
                    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
                </div>
                <div class="box">
                    @Html.Action("DeleteAccount")
                </div>
            </section>
        </div>
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/valid")
}
